Ignore some config errors during init
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 24 Jul 2016 07:45:02 +0000 (10:45 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 24 Jul 2016 07:52:46 +0000 (10:52 +0300)
commita3ae29962e40a1b81940d425f9179bc6a05243fd
tree6711e8877f23df866ed2c4d999d9af7a18b19aa8
parenta2cc38dc7e8679f208be24f5360f0db927a76eb8
Ignore some config errors during init

While it is generally terrible to silently ignore errors in the
configuration files, it is acceptable in this case. Verbosity and color
config have reasonable defaults, and we don't want to fail for simple
commands like `cargo --version` just because of the garbage in the
config file.

fixed #2848
src/cargo/util/config.rs
tests/version.rs